Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 8.11% (-0% 🔻) |
1859/22932 |
| 🔴 | Branches | 7.34% (-0.01% 🔻) |
1187/16168 |
| 🔴 | Functions | 4.82% (+0.01% 🔼) |
297/6161 |
| 🔴 | Lines | 7.88% (-0% 🔻) |
1750/22217 |
Test suite run success
865 tests passing in 40 suites.
Report generated by 🧪jest coverage report action from 19752e5
There was a problem hiding this comment.
Pull request overview
Adds an optional “delete associated model folder” flow when deleting an admin model card, and replaces the plain success toast with a notification that can deep-link users to the Trash view.
Changes:
- Added new
adminModelCard.*i18n strings for the new checkbox/tooltip and deletion result notifications. - Updated
AdminModelCardListPagedelete confirmation modal to include an “also delete folder” checkbox and (optionally) rundeleteVfolderV2, followed by a success notification with a “Go to Data > Trash” action.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| resources/i18n/en.json | Adds new English strings for delete-folder option and trash navigation notification. |
| react/src/pages/AdminModelCardListPage.tsx | Adds delete-folder checkbox, new vfolder delete mutation, and a post-delete trash notification with navigation. |
5a33b0a to
196618a
Compare
196618a to
2763cba
Compare
893816e to
b61a8af
Compare
ironAiken2
left a comment
There was a problem hiding this comment.
test을(를) 입력하여 확인하세요. The translated text seems a little awkward. 'Please enter <folder name> to delete.' How does that sound?
b61a8af to
cbde122
Compare
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🟢 | Statements | 81.87% | 429/524 |
| 🟡 | Branches | 70.43% | 362/514 |
| 🟡 | Functions | 76.86% | 93/121 |
| 🟢 | Lines | 83.19% | 391/470 |
Test suite run success
319 tests passing in 13 suites.
Report generated by 🧪jest coverage report action from 19752e5
ironAiken2
left a comment
There was a problem hiding this comment.
test을(를) 입력하여 확인하세요.The translated text seems a little awkward. 'Please enter <folder name> to delete.' How does that sound?
Please check this comment
cbde122 to
4fe4032
Compare
4fe4032 to
6d6f443
Compare
6d6f443 to
19752e5
Compare
…-input association without breaking controlled input Form.Item with `name` uses cloneElement to inject its own value/onChange, overiding the explicit controlled value/onChange on Input. This caused typedText to never update, keeping the Delete button permanently disabled. Fix: let Form own the input state via Form.useForm + Form.useWatch, and remove explicit value/onChange from Input.
19752e5 to
6f30d94
Compare
Coverage Report for backend-ai-ui-coverage (./packages/backend.ai-ui)
File Coverage
|
||||||||||||||||||||||||||||||||||||||
Coverage Report for react-coverage (./react)
File Coverage
|
||||||||||||||||||||||||||||||||||||||

Resolves #6841 (FR-2622)
Summary
vfolderIdfield toAdminModelCardListPageQueryso the model card's associated vfolder ID is available in the deletion flow.AdminModelCardListPageDeleteVFolderMutation(deleteVfolderV2) to soft-delete (move to trash) the associated model folder.alsoDeleteFolderstate (defaultfalse) that resets when the deletion dialog closes.Checkbox(wrapped inTooltip) to the single-deleteBAIDeleteConfirmModalvia theextraContentprop, allowing admins to also trash the associated model folder in the same action.onOkhandler: when checked,deleteVfolderV2is called after card deletion; both paths show anotification.successwith a "Go to Data > Trash" action button navigating to/data?statusCategory=deleted(with folder filter when folder is also deleted).adminModelCardinen.json:AlsoDeleteModelFolder,AlsoDeleteModelFolderTooltip,ModelCardAndFolderDeleted,ModelCardDeletedFolderKept,GoToTrash.